package com.hs.carrental.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hs.carrental.dto.order.OrderPageDto;
import com.hs.carrental.dto.order.OrderSaveDto;
import com.hs.carrental.entity.Order;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hs.carrental.vo.order.OrderPageVo;
import com.hs.carrental.vo.order.OrderStatChartVo;
import com.hs.carrental.vo.order.OrderStatVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lyy
 * @since 2021-03-17
 */
public interface IOrderService extends IService<Order> {

    boolean save(OrderSaveDto orderSaveDto);

    IPage<OrderPageVo> getPage(OrderPageDto orderPageDto);

    List<OrderStatChartVo> statOrderByStore(Integer storeId,String year);

    boolean delete(Integer orderId);
}
